package com.bristua.mall.common.bean;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

/**
 * Created by Administrator on 2018/4/24 0024.
 */
public class Page {
    private int page=1;
    private int limit=10;

    public int getPage() {
        return page;
    }

    public void setPage(int page) {
        this.page = page;
    }

    public int getLimit() {
        return limit;
    }

    public void setLimit(int limit) {
        this.limit = limit;
    }

    public Map<String,Object> getMapData(List data, long total){
        Map<String,Object> map = new HashMap();
        map.put("data",data);
        map.put("count",total);
        return map;
    }
}
